ItemManager = {}
ItemManagerFunc = {}
ItemManagerFunc.__index = ItemManagerFunc
setmetatable(ItemManager, ItemManagerFunc)

ItemManagerFunc.getItemCount = function(self, itemid)
  for k,v in pairs(UserData.userinfo.host.items) do
    if v.i == itemid then
      return v.n
    end
  end
  return 0
end

